package es.deusto.ingenieria.is.gemas;


public class Gema {
	private Tipos type;
	private Colores color;
	private int weight;
	
	public Gema(String type, String color, int weight) {
		super();
		setType(type);
		setColor(color);
		this.weight = weight;
	}

	public Tipos getType() {
		return type;
	}

	public void setType(String type) {
		this.type = Tipos.valueOf(type.toUpperCase());
	}

	public Colores getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = Colores.valueOf(color);
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}
	@Override
	public String toString() {
		return "Tipo: "+ type + " Color: "+color+ " Valor: "+ weight;
		 
	}
}
